package com.tarena.seata.order.mapper;

import com.tarena.seata.order.pojo.OrderPO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

public interface OrderMapper {
    @Insert("INSERT INTO order_tbl (order_sn, user_id, product_code, count, total_money) "
        + "VALUES (#{orderSn}, #{userId}, #{productCode}, #{count}, #{totalMoney})")
    @Options(useGeneratedKeys = true, keyProperty = "id")
    void insert(OrderPO order);
}
